package com.xbibo.autoconfigure.dal.redis.support;

import java.io.Serializable;

/**
 * 实体重载器
 *
 * @author jiangnan.zjn@alibaba-inc.com
 * @createDate 2017/9/23
 */
@FunctionalInterface
public interface RedisEntityLoader<T, ID extends Serializable> {

    /**
     * 重载数据
     * @param id ID
     * @return T
     * @throws Exception 异常
     */
    T load(ID id) throws Exception;

}
